/*
* $Id: TableHeader.h 152 2010-09-23 18:28:55Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _TABLE_HEADER_H_
#define _TABLE_HEADER_H_

#include "TableStructs.h"
#include "TableItem.h"

class CTableHeader : public tableHeader, public CItemTable
{
protected:
	int GetXmlCx();
	void SetXmlCx();
public:
	CTableHeader(const std::tstring& strName, int nId, TypeField::type tp);
	~CTableHeader();
public:
	void SetPos(CPoint pos, bool bNextParent);
	void SetSize(CSize size);
	bool IsInRect(CPoint pos);
	bool IsAtBorder(CPoint pos);
};

#endif/*_TABLE_HEADER_H_*/